/*
 * @Date: 2022-09-16 09:20:00
 * @LastEditTime: 2022-09-16 09:23:02
 */
import Layout from '@/layout'
export const staticRoutes = [
  {
    path: '/login',
    component: () => import('@/views/login/index'),
    hidden: true
  },
  {
    path: '/404',
    component: () => import('@/views/404'),
    hidden: true
  },
  {
    path: '/',
    component: Layout,
    redirect: '/dashboard',
    children: [
      {
        path: 'dashboard',
        name: 'Dashboard',
        component: () => import('@/views/dashboard/index'),
        meta: { title: '首页', icon: 'dashboard' }
      },
    ]
  },
]
export const allAsyncRoutes = [{
  path: "/acl",
  name: "Acl",
  component: () => import("@/layout/index.vue"),
  redirect: "/acl/user/list",
  meta: {
    title: "权限管理",
    icon: "ele-Setting",
  },
  children: [
    {
      name: "User",
      path: "/acl/user/list",
      component: () => import("@/views/acl/user/index.vue"),
      meta: {
        title: "用户管理",
      },
    },
    {
      name: "Role",
      path: "/acl/role/list",
      component: () => import("@/views/acl/role/index.vue"),
      meta: {
        title: "角色管理",
      },
    },
    // {
    //   name: "RoleAuth",
    //   path: "/acl/role/auth",
    //   component: () => import("@/views/acl/role/roleAuth.vue"),
    //   meta: {
    //     title: "角色管理",
    //     hidden: true,
    //     activeMenu: "/acl/role/list",
    //   },
    // },
    {
      name: "Permission",
      path: "/acl/permission/list",
      component: () => import("@/views/acl/permission/index.vue"),
      meta: {
        title: "菜单管理",
      },
    },
  ],
}]
export const anyRoute = {
  path: '/:pathMatch(.*)',
  redirect: '/404',
  name: 'Any',
  meta: {
    hidden: true
  }
}

